<template>
  <view class="memo-item" @click="select(memo.bId)">
    <view class="title">{{ memo.title }}</view>
	<view class="memo-content">
		<view class="date">{{ memo.date }}</view>
		<view>|</view>
		<view class="content">{{ memo.content }}</view>
	</view>
	
  </view>
</template>

<script>
export default {
  props: {
    memo: {
      type: Object,
      required: true
    }
  },
  methods: {
	  select(bId){
	  	// console.log(bId);
		uni.navigateTo({
			url:'/pages/main/tabbar/tabbar-4/memorandumUpdate?id=' + bId 
		})
	  },
	  
  }
}
</script>

<style scoped>
.memo-item {
  margin: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #8F939C;
  border-radius: 10px;
}

.memo-content {
	display: flex;
}

.title {
  font-weight: bold;
  font-size: 16px;
}

.date {
  color: gray;
  font-size: 12px;
  margin-top: 5px;
  margin-right: 5px;
}

.content {
  color: gray;
  margin-top: 1px;
  margin-left: 5px;
}
</style>